home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / PeoplePages.idb / etc / init.d / peoplepages.z / peoplepages
Encoding:
Text File  |  1996-09-20  |  650 b   |  42 lines

  1. #!/sbin/sh
  2. #Tag 0x00000f00
  3.  
  4. # Start or stop the PeoplePages server daemon
  5. # "$Revision: 1.4 $"
  6.  
  7. IS_ON=/sbin/chkconfig
  8. EXE=/usr/etc/ppagesd
  9. PROG=ppagesd
  10. OPTIONS=/etc/config/${PROG}.options
  11.  
  12. if $IS_ON verbose ; then
  13.     ECHO=echo
  14. else
  15.     ECHO=:
  16. fi
  17.  
  18. case "$1" in
  19.   'start')
  20.     /sbin/killall $PROG
  21.     if $IS_ON $PROG && test -x $EXE; then
  22.         if [ -r ${OPTIONS} ] ; then
  23.         while read path name
  24.         do
  25.             $EXE $path $name
  26.             $ECHO "PeoplePages daemon: ${PROG}."
  27.         done < ${OPTIONS} 
  28.         else
  29.         echo PeoplePages daemon: config file "${OPTIONS}" not found
  30.         fi
  31.     fi
  32.     ;;
  33.  
  34.   'stop')
  35.     /sbin/killall $PROG
  36.     ;;
  37.  
  38.   *)
  39.     echo "usage: $0 {start|stop}"
  40.     ;;
  41. esac
  42.